package com.zjp.pojo;

import lombok.ToString;

import java.util.Date;
@ToString
public class Trip {
    private Long tripid;

    private Date arrivaltime;

    private Date departuretime;

    private Integer areaid;

    private Byte tripstatus;

    private Long userid;

    private String detailedAddress;

    public Trip(Long tripid, Date arrivaltime, Date departuretime, Integer areaid, Byte tripstatus, Long userid, String detailedAddress) {
        this.tripid = tripid;
        this.arrivaltime = arrivaltime;
        this.departuretime = departuretime;
        this.areaid = areaid;
        this.tripstatus = tripstatus;
        this.userid = userid;
        this.detailedAddress = detailedAddress;
    }

    public Trip() {
        super();
    }

    public Long getTripid() {
        return tripid;
    }

    public void setTripid(Long tripid) {
        this.tripid = tripid;
    }

    public Date getArrivaltime() {
        return arrivaltime;
    }

    public void setArrivaltime(Date arrivaltime) {
        this.arrivaltime = arrivaltime;
    }

    public Date getDeparturetime() {
        return departuretime;
    }

    public void setDeparturetime(Date departuretime) {
        this.departuretime = departuretime;
    }

    public Integer getAreaid() {
        return areaid;
    }

    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }

    public Byte getTripstatus() {
        return tripstatus;
    }

    public void setTripstatus(Byte tripstatus) {
        this.tripstatus = tripstatus;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress == null ? null : detailedAddress.trim();
    }
}